go/types.Checker.index (method)

5 uses

	go/types (current package)
		builtins.go#L518: 			typ, size := check.index(arg, -1) // ok to continue with typ == Typ[Invalid]
		index.go#L205: 	check.index(index, length)
		index.go#L296: 			if _, v := check.index(expr, max); v >= 0 {
		index.go#L347: func (check *Checker) index(index ast.Expr, max int64) (typ Type, val int64) {
		index.go#L423: 			if typ, i := check.index(kv.Key, length); typ != Typ[Invalid] {